package com.yjgu.online.exam.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
public class LoginController {

    @RequestMapping("main.do")
    public String init(Model model, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse){

        model.addAttribute("msg","欢迎来到登录界面");
        return "login";
    }

}
